#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
@Time    : 2019-10-06 17:17
@Author  : wangb
@Email   : joker_wb@163.com
@File    : config_utils.py
@Software: PyCharm
"""


def parse_str_with_star(str_with_star):
    """
    根据传入的一个带有*的字符串将其自动做乘法
    100*300
    :param str_with_star:
    :return:
    """
    nums = str_with_star.split('*')
    ans = 1
    for num in nums:
        ans *= int(num)
    return ans


if __name__ == '__main__':
    print(parse_str_with_star('20'))
